extends PlayStatusInterface

# 物理桢，处理碰撞的逻辑
func run_physics_process(_delta):
	var collision_info = owner.move_and_collision_info()
	if collision_info.get("is_on_floor"):
		if owner.velocity.x == 0:
			manage_node.to_idle()
		else:
			manage_node.to_walk()
		return
	
	# 墙上时刻
	if owner.is_collision_wall():
		manage_node.to_onwall()
		return 
					
	# 头顶时刻	
	if	owner.is_collision_celling():
		print(3333)
		manage_node.to_celling()
		return
			
# 逻辑桢，处理画面的逻辑
func run_process(delta):	
	#1. 速度通用处理
	var direction = owner.common_velocity(delta)
		
	# 二段跳
	owner.can_second_jump()
	owner.show_animiation("jump")
